import request from '../../utils/request';

// 获取菜单
export function getUserMenu(params:{}) {
  return request({
    url: 'api/v1/user-menu',
    method: 'get',
    params: params
  }, {
    loading: true
  }, {
    text: '获取列表数据....'
  })
}


//修改用户信息
export function updateUserInfo(params:{}) {
  return request({
    url: 'api/v1/change-bind',
    method: 'post',
    data: params
  })
}
//修改密码
export function setPassword(params:{}) {
  return request({
    url: 'api/v1/set-password',
    method: 'post',
    data: params
  })
}

//上传头像
export function updateAvatar(params:{}) {
  return request({
    url: 'api/v1/upload-avatar',
    method: 'post',
    data: params
  })
}
//入驻天数
export function userDay(params:{}) {
  return request({
    url: 'api/v1/user-day',
    method: 'get',
    params: params
  })
}
//我的收藏
export function myCollectList(params:{}) {
  return request({
    url: 'api/v1/collect-list',
    method: 'get',
    params: params
  }, {
    loading: true
  }, {
    text: '获取列表数据....'
  })
}

//用户足迹
export function myHistory(params:{}) {
  return request({
    url: 'api/v1/user-history',
    method: 'get',
    params: params
  }, {
    loading: true
  }, {
    text: '获取列表数据....'
  })
}








